package com.wyp168.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName Category2VO
 * @Title TODO
 * @Description TODO
 * @Author wyp168
 * @Date 2023/8/27 22:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Category2VO {
    //一级父分类id
    private String catalog1Id;
    //三级子分类数组
    private List<Category3VO> catalog3List;
    //二级分类id
    private String id;
    //二级分类名称
    private String name;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Category3VO {
        //二级父分类id
        private String catalog2Id;
        //三级分类id
        private String id;
        //三级分类名称
        private String name;
    }
}
